package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_match_works;

import cn.com.api.mapper.ApiU_match_worksMapper;

import cn.com.api.service.ApiU_match_worksService;

/**
 * 
 **/
@Service
public class U_match_worksServiceImplBase {
	@Autowired
	private ApiU_match_worksMapper apiU_match_worksMapper;
    
    // 根据id获取
	public ApiU_match_works findU_match_worksById(Integer id){
		ApiU_match_works u_match_works = apiU_match_worksMapper.findU_match_worksById( id );
		return u_match_works;
	}
    
    //查看数据集
	public List<ApiU_match_works> findU_match_workss(){
        List<ApiU_match_works> u_match_workss = apiU_match_worksMapper.findU_match_workss();
		return u_match_workss;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_match_workssByMap(HashMap condition){
        List<Map<String, Object>> u_match_workss = apiU_match_worksMapper.findU_match_workssByMap(condition);
		return u_match_workss;
    }
    
	// 添加
	public int insertU_match_works(ApiU_match_works u_match_works){
		int ret_I= apiU_match_worksMapper.insertU_match_works(u_match_works);
		return ret_I;
	}

	// 修改
	public int updateU_match_works(ApiU_match_works u_match_works){
		int ret_I= apiU_match_worksMapper.updateU_match_works(u_match_works);
		return ret_I;
	}
	
    // 删除
	public int deleteU_match_works(Integer id){
		int ret_I= apiU_match_worksMapper.deleteU_match_works( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


